<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>04.父项属性-flex-wrap</title>

  <style>

  .box{
    width: 800px;
    margin: 0 auto;
    background-color: pink;
    display: flex;
    flex-wrap: wrap;
  }

  .item {
    width: 100px;
    height: 100px;
    background-color: blueviolet;
    border-radius: 2px;
    margin: 2px;
  }

  </style>
</head>
<body>

<h4> flex-wrap: wrap </h4>
<div class="box">
  <div class="item">1</div>
  <div class="item">2</div>
  <div class="item">3</div>
  <div class="item">4</div>
  <div class="item">5</div>
  <div class="item">6</div>
  <div class="item">7</div>
  <div class="item">8</div>
  <div class="item">9</div>
</div>

</body>
</html>